﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Pos.DAL;
using Pos.Model;
using Pos.SharedLibrary;
using System.Data.SqlClient;
using System.Data;

namespace POS
{
    public partial class Order : System.Web.UI.Page
    {
        public string[] orderList;
        protected void Page_Load(object sender, EventArgs e)
        {
            OrderDAL order = new OrderDAL();
            DataTable dt = order.GetAll();
            orderList = new string[dt.Rows.Count]; 
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                orderList[i] = dt.Rows[i][0].ToString();
            }
        }

        private void dependency_OnChange(object sender, SqlNotificationEventArgs e)
        {
            //OrderDAL order = new OrderDAL();
            //DataTable dt = order.GetAll();
            //OrderHub.Show(dt);
        }
    }
}